package com.shi.my_stream;

import java.util.Arrays;

public class Demo05 {
    public static void main(String[] args) {
        //1.创建数组
        int[] arr1 = {1,2,3,4,5,6,7,8,9,10};
        String[] arr2 = {"a","b","c"};

        //方法一：
        Arrays.stream(arr1).forEach(System.out::println);
        System.out.println("---------------------");
        Arrays.stream(arr2).forEach(System.out::println);
    }
}
